import request from '@/utils/request'

// 查询间隔列表
export function listBay(query) {
  return request({
    url: '/property/bay/list',
    method: 'get',
    params: query
  })
}

// 查询间隔详细
export function getBay(id) {
  return request({
    url: '/property/bay/' + id,
    method: 'get'
  })
}

// 新增间隔
export function addBay(data) {
  return request({
    url: '/property/bay',
    method: 'post',
    data: data
  })
}

// 修改间隔
export function updateBay(data) {
  return request({
    url: '/property/bay',
    method: 'put',
    data: data
  })
}

// 删除间隔
export function delBay(id) {
  return request({
    url: '/property/bay/' + id,
    method: 'delete'
  })
}

// 新增间隔
export function importBayImage(data) {
  return request({
    url: '/property/bay/import',
    method: 'post',
    data: data
  })
}
